'''
Created on 01/05/2011

@author: Adam
'''
from flaskext import wtf
from flaskext.wtf import validators


class ImporterForm(wtf.Form):
	dataSourceUrl = wtf.TextField('Data Source', validators=[validators.Required(), validators.URL(require_tld=False)])
	dataOptions = wtf.SelectMultipleField(u'Features',
			choices=[('map', 'Map'),
					 ('modules', 'POS Modules'),
					 ('towers', 'Tower Details')],
			widget=wtf.ListWidget(prefix_label=False),
			option_widget=wtf.CheckboxInput())
	regionMoons = wtf.SelectMultipleField(u'Moons in Region',
			widget=wtf.ListWidget(prefix_label=False),
			option_widget=wtf.CheckboxInput())